package MasterExam;


class Base {
	
	public int num = 10;
	
	void aMethod(int base){
		System.out.println("Base: " + num);
	}

	public void nomeCarro(int i) {
		System.out.println("Base");
	}

}
public class Over extends Base {

	public int num = 20;
	
	void aMethod(int over){
		System.out.println("Over: " + num);
	}

	/*public void nomeCarro(long i ) throws Exception {
		System.out.println("Base");
	}*/

	public void nomeCarro(long i ) {
		System.out.println("Base");
	}


	public static void main(String[] args) {
		Base o = new Over();
		int iBase = 0;
		o.aMethod(iBase);
		
		System.out.println(o.num);
	}



}
